package dna.macromolecules;

import core.molecules.IMolecule;
import core.molecules.MoleculeBase;
import dna.deoxynucleosides.Deoxynucleoside;
import dna.nucleosides.Nucleoside;

/**
 * A DNAStrand construct designed to mirror a modelled DNA strand
 * @author Julian
 *
 */
public class DNAStrand extends MoleculeBase<Nucleoside>{

	@Override
	public String toString() {
		return myID + super.toString();
	}

	
	public DNAStrand(int id){
		super(id);
	}
	
	@Override
	public String getAbbr() {
		return "DNA" + myID;
	}


	@Override
	public boolean equals(IMolecule m) {
		if (!this.getClass().isAssignableFrom(m.getClass()))
			return false;
		return this.getID().equals(m.getID());
	}


	
}
